package com.app.repository.interfaces;

import com.app.model.main.MessageRecord;

import java.util.List;

public interface MessageRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MessageRecord record);

    int insertSelective(MessageRecord record);

    MessageRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MessageRecord record);

    int updateByPrimaryKey(MessageRecord record);

    List<MessageRecord> selectByReceiverId(long receiverId);

    List<MessageRecord> selectBySenderId(long senderId);
}